package com.android.qjpmc.manager;

import android.os.Bundle;

import com.android.qjpmc.application_module.home.fragment.AlarmRecordslFragment;
import com.android.qjpmc.application_module.home.fragment.HistoryPageFragment;
import com.android.qjpmc.application_module.home.fragment.MainPwrDiagramFragment;
import com.android.qjpmc.application_module.home.fragment.ScanStationListFragment;
import com.android.qjpmc.application_module.home.fragment.StationListFragment;
import com.android.qjpmc.application_module.home.fragment.MinePageFragment;
import com.android.qjpmc.application_module.home.fragment.ViewEventFragment;
import com.android.qjpmc.application_module.station.fragment.FaultWaveFragment;
import com.android.qjpmc.application_module.station.fragment.HisCurveFragment;
import com.android.qjpmc.application_module.station.fragment.PwrDiagramFragment;
import com.android.qjpmc.application_module.station.fragment.ReportDataFragment;
import com.android.qjpmc.application_module.station.fragment.RtCurveFragment;
import com.android.qjpmc.application_module.station.fragment.RtDataFragment;
import com.android.qjpmc.application_module.station.fragment.StationVideoFragment;

import androidx.fragment.app.Fragment;

public class FragmentManager {
    public static StationListFragment getStationListFragment() {
        StationListFragment pageFragment = new StationListFragment();
        return pageFragment;
    }

    public static ScanStationListFragment getScanStationListFragment() {
        ScanStationListFragment pageFragment = new ScanStationListFragment();
        return pageFragment;
    }

    public static AlarmRecordslFragment getAlarmRecordFragment() {
        AlarmRecordslFragment pageFragment = new AlarmRecordslFragment();
        return pageFragment;
    }

    public static HistoryPageFragment getHistoryPageFragment() {
        HistoryPageFragment pageFragment = new HistoryPageFragment();
        return pageFragment;
    }

    public static ViewEventFragment getViewEventFragment() {
        ViewEventFragment pageFragment = new ViewEventFragment();
        return pageFragment;
    }

    public static MinePageFragment getMinePageFragment() {
        MinePageFragment pageFragment = new MinePageFragment();
        return pageFragment;
    }

    public static Fragment getPwrDiagramFragment(int id) {
        PwrDiagramFragment pageFragment = new PwrDiagramFragment();
        Bundle bundle = new Bundle();
        bundle.putLong("id", id);
        pageFragment.setArguments(bundle);
        return pageFragment;
    }

    public static Fragment GetMainPwrDiagramFragment() {
        MainPwrDiagramFragment pageFragment = new MainPwrDiagramFragment();
        return pageFragment;
    }

    public static Fragment getRtDataFragment(int id) {
        RtDataFragment pageFragment = new RtDataFragment();
        Bundle bundle = new Bundle();
        bundle.putLong("id", id);
        pageFragment.setArguments(bundle);
        return pageFragment;
    }

    public static Fragment getRtCurveFragment(int id) {
        RtCurveFragment pageFragment = new RtCurveFragment();
        Bundle bundle = new Bundle();
        bundle.putLong("id", id);
        pageFragment.setArguments(bundle);
        return pageFragment;
    }

    public static Fragment getVideoFragment(int id) {
        StationVideoFragment pageFragment = new StationVideoFragment();
        Bundle bundle = new Bundle();
        bundle.putLong("id", id);
        pageFragment.setArguments(bundle);
        return pageFragment;
    }

    public static Fragment getReportDataFragment(int id) {
        ReportDataFragment pageFragment = new ReportDataFragment();
        Bundle bundle = new Bundle();
        bundle.putLong("id", id);
        pageFragment.setArguments(bundle);
        return pageFragment;
    }

    public static HisCurveFragment getHisCurveFragment(int id) {
        HisCurveFragment pageFragment = new HisCurveFragment();
        Bundle bundle = new Bundle();
        bundle.putLong("id", id);
        pageFragment.setArguments(bundle);
        return pageFragment;
    }

    public static Fragment getFaultWaveFragment(int id) {
        FaultWaveFragment pageFragment = new FaultWaveFragment();
        Bundle bundle = new Bundle();
        bundle.putLong("id", id);
        pageFragment.setArguments(bundle);
        return pageFragment;
    }
}
